home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / OS / FWGraphx / Include / FWGConst.h < prev    next >
Encoding:
Text File  |  1994-04-21  |  3.5 KB  |  126 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWGConst.h
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Creation Date:        3/28/94
  7. //
  8. //    Copyright:    © 1993, 1994 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef FWGCONST_H
  13. #define FWGCONST_H
  14.  
  15. // ----- Macintosh Includes -----
  16.  
  17. #if defined(FW_BUILD_MAC) && !defined(__QUICKDRAW__)
  18. #include <QuickDraw.h>
  19. #endif
  20.  
  21. // ----- Windows Includes -----
  22.  
  23. #if defined(FW_BUILD_WIN) && !defined(_INC_WINDOWS)
  24. #include <windows.h>
  25. #endif
  26.  
  27. //==============================================================================
  28. //    •• Drawing Modes
  29. //==============================================================================
  30.  
  31. typedef short    FW_TransferMode;
  32.  
  33. #ifdef FW_BUILD_WIN
  34. const FW_TransferMode FW_kCopy                = R2_COPYPEN;
  35. const FW_TransferMode FW_kNotCopy            = R2_NOTCOPYPEN;
  36. const FW_TransferMode FW_kOr                = R2_MASKPEN;
  37. const FW_TransferMode FW_kNotOr                = R2_MASKNOTPEN;
  38. const FW_TransferMode FW_kXOr                = R2_XORPEN;
  39. const FW_TransferMode FW_kNotXOr            = R2_NOTXORPEN;
  40. const FW_TransferMode FW_kClear                = R2_MERGEPEN;
  41. const FW_TransferMode FW_kNotClear            = R2_MERGENOTPEN;
  42. #endif
  43.  
  44. #ifdef FW_BUILD_MAC
  45. const FW_TransferMode FW_kCopy                = patCopy;
  46. const FW_TransferMode FW_kNotCopy            = notPatCopy;
  47. const FW_TransferMode FW_kOr                = patOr;
  48. const FW_TransferMode FW_kNotOr                = notPatOr;
  49. const FW_TransferMode FW_kXOr                = patXor;
  50. const FW_TransferMode FW_kNotXOr            = notPatXor;
  51. const FW_TransferMode FW_kClear                = patBic;
  52. const FW_TransferMode FW_kNotClear            = notPatBic;
  53. #endif
  54.  
  55. //==============================================================================
  56. //    •• Font Name
  57. //==============================================================================
  58.  
  59. #ifdef FW_BUILD_MAC
  60. const char* FW_kSystemFont                = "chicago";
  61. const char* FW_kDefaultFont            = "helvetica";
  62. const char* FW_kHelvetica                = "helvetica";
  63. #endif
  64.  
  65. //==============================================================================
  66. //    •• Font Style
  67. //==============================================================================
  68.  
  69. enum FW_FontStyle
  70. {
  71.     FW_kPlain             = 0x0000,
  72.     FW_kBold             = 0x0001,
  73.     FW_kItalic             = 0x0002,
  74.     FW_kUnderline         = 0x0004,
  75.     FW_kStrikeThrough     = 0x0008,
  76.     FW_kOutline         = 0x0010,
  77.     FW_kShadow             = 0x0020,
  78.     FW_kExtended         = 0x0040,
  79.     FW_kCondensed         = 0x0080
  80. };
  81.  
  82. //==============================================================================
  83. //    •• Shape Type
  84. //==============================================================================
  85.  
  86. enum FW_ShapeCategory
  87. {
  88.     FW_kGeometricShape,
  89.     FW_kTypographicShape,
  90.     FW_kBitmapShape,
  91.     FW_kPictureShape
  92. };
  93.  
  94. //==============================================================================
  95. //    •• Shape Fills
  96. //==============================================================================
  97.  
  98. enum FW_ShapeFills {
  99.     FW_kNullShape,
  100.     FW_kFramed,
  101.     FW_kDashFramed,
  102.     FW_kFilled
  103. };
  104.  
  105. //==============================================================================
  106. //    •• Hit Testing Part
  107. //==============================================================================
  108.  
  109. enum FW_HitTestPart {
  110.     FW_kOutside = 0,
  111.     FW_kInBounds = 1,
  112.     FW_kInGeometry = 2
  113. };
  114.  
  115. //==============================================================================
  116. //    •• Justification
  117. //==============================================================================
  118.  
  119. enum FW_Justification {
  120.     FW_kFlushDefault,
  121.     FW_kFlushCenter,
  122.     FW_kFlushRight,
  123.     FW_kFlushLeft
  124. };
  125.  
  126. #endif